// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
/* eslint-disable */

import Vue from 'vue'
import App from './App'
import router from './router'
import './router/permission' // 路由权限

import MuseUI from 'muse-ui'
import 'muse-ui/dist/muse-ui.css' //  基本样式

// 如果用户没有选择过主题 用默认蓝色 
const theme = localStorage.getItem('theme')
if (theme) {
  require("@/styles/theme/theme-" + theme + ".less");
} else {
  require("@/styles/theme/theme-blue.less");
}

import '@/styles/base.less'
Vue.use(MuseUI)


import store from './store'
import Http from '@/http'

// import "@/utils/array"
// import "@/utils/string"
import {
  isObj,
  isNumber,
  isBoolean,
  isString,
  isArray,
  hasValue
} from '@/utils/monitor'



Vue.config.productionTip = false
Vue.prototype.isObj = isObj
Vue.prototype.isNumber = isNumber
Vue.prototype.isBoolean = isBoolean
Vue.prototype.isArray = isArray
Vue.prototype.hasValue = hasValue
Vue.prototype.Http = Http
/* eslint-disable no-new */

new Vue({
  el: '#app',
  router,
  store,
	Http,
  components: { App },
  template: '<App/>'
})
